<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单管理</title>
<jsp:include page="/inc/top.jsp"></jsp:include>
<jsp:include page="/inc/head.jsp"></jsp:include>
<script type="text/javascript" src="../../js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="../../js/user-table/systemresourcelist.js"></script>
<script type="text/javascript" src="../../js/ztree/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="../../js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<link href='../../css/bootstrap-table/bootstrap-table.min.css' rel='stylesheet' type='text/css'>
<link href='../../css/ztree/metro.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="inner-block">
<div class="inbox">
	<ol class="breadcrumb">
  		<c:forEach var="item" items="${navmap}">
			<c:choose>
   				<c:when test="${item.value== '#'}">
   					<li><a>${item.key}</a></li>
   				</c:when>
   				<c:otherwise>
   					<li><a href="${item.value}">${item.key}</a></li>
   				</c:otherwise>
			</c:choose>
		</c:forEach>
	</ol>
</div>
  <div class="panel-body" style="padding-bottom:0px;">
    <div class="panel panel-default">
      <div class="panel-heading">菜单查询</div>
      <div class="panel-body">
        <form id="formSearch" class="form-horizontal">
          <div class="form-group" style="margin-top:15px">
            <nobr><label class="control-label col-sm-1" for="txt_search_departmentname">菜单名称</label></nobr>
            <div class="col-sm-5">
              <input type="text" class="form-control" id="txt_search_departmentname">
            </div>
            <div class="col-sm-3" style="text-align:right;">
              <button type="button" style="margin-left:50px" id="btn_query" class="btn btn-primary">查询</button>
            </div>
          </div>
        </form>
      </div>
    </div>	   
    <div id="toolbar" class="btn-group">
      <button id="btn_add" type="button" class="btn btn-default" onclick="addShow()" >
        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
      </button>
      <button id="btn_edit" type="button" class="btn btn-default" onclick="editShow()">
        <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
      </button>
      <button id="btn_delete" type="button" class="btn btn-default" onclick="deleteCon()">
        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
      </button>
    </div>
    <table id="tb_departments"></table>
  </div>
  
  <!--remodal start-->
<div class="remodal" data-remodal-id="modal1" role="dialog" aria-labelledby="modal1Title" aria-describedby="modal1Desc" 
	data-remodal-options="closeOnOutsideClick: false" id="modal">
  <button data-remodal-action="close" class="remodal-close" aria-label="Close"></button>
  <div>
  <h2 id="modalTitle">新建菜单</h2>
  <br>
	<form role="form" id="modal1Desc">
  		<div class="form-group">
    		<input type="text" class="form-control" placeholder="菜单名称" maxlength="10" id="MenuName">
  		</div>
  		<div class="form-group">
    		<input type="text" class="form-control" placeholder="菜单链接(如:/admin/login)" maxlength="50" id="MenuUrl">
  		</div>
  		<div class="form-group">
    		<select class="form-control" id="munutype"> 
            	<option value='1'>系统菜单</option>
            	<option value='2'>公共菜单</option>
  			</select>
  		</div>
   		<div class="form-group">
    		<textarea class="form-control" rows="3" placeholder="菜单描述" id="Menudes"></textarea>
  		</div>
 	</form>
  </div>
  <br>
  <button class="remodal-confirm" onclick="addMenu()" id="MenuCon">确定</button>
</div>
</div>
<!--remodal end-->
</body>
</html>
<jsp:include page="/inc/bottom.jsp"></jsp:include>